package com.lxy.demo.service;

import com.lxy.demo.dao.UsersMapper;
import com.lxy.demo.entity.Users;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class UsersServiceImpl implements UsersServce{

    @Autowired
    private UsersMapper mapper;

    @Override
    public boolean selectUser(String userCode,String password) {
        Users users =  mapper.selectUser(userCode,password);
        return users != null;
    }
}
